package com.distributed.netty.entity;

import java.io.Serializable;
import java.util.HashSet;
import java.util.concurrent.ConcurrentHashMap;

/**
 * @desc	消息类
 * @author	高增源
 * @time	2022/05/08
 */
public class Message implements Serializable{
	/**发送者ip*/
	private String sendSlaveIp="";
	private HashSet<String> slaves;

	private HashSet<ElementJob> elementJobs;

	private String msg;

	public HashSet<ElementJob> getElementJobs() {
		return elementJobs;
	}

	public void setElementJobs(HashSet<ElementJob> elementJobs) {
		this.elementJobs = elementJobs;
	}

	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}


	public String getSendSlaveIp() {
		return sendSlaveIp;
	}

	public HashSet<String> getSlaves() {
		return slaves;
	}

	public void setSlaves(HashSet<String> slaves) {
		this.slaves = slaves;
	}

	public void setSendSlaveIp(String sendSlaveIp) {
		this.sendSlaveIp = sendSlaveIp;
	}

	@Override
	public String toString() {
		return "Message{" +
				"sendSlaveIp='" + sendSlaveIp + '\'' +
				", slaves=" + slaves +
				", elementJobs=" + elementJobs +
				", msg='" + msg + '\'' +
				'}';
	}
}
